var express = require('express');
var router = express.Router();
const {addUserInfo} = require('../db_control/user_data_control')

router.post('/addUserInfo',async (req,res,next)=>{
  const params = req.body;
  await addUserInfo(params)
  res.send({
    code:200,
    data:{
      msg:'保存个人资料成功'
    }
  })
})
router.get('/getUserInfo',async (req,res,next)=>{
  const params = req.body;
  await addUserInfo(params);
  res.send({
    code:200,
    data:{
      msg:'保存个人资料成功'
    }
  })
})
// 择偶条件
router.post('/spouseCriterion',async (req,res,next)=>{
  const params = req.body;
  await addSpouseCrite(params);
  res.send({
    code:200,
    data:{
      msg:'保存择偶资料成功'
    }
  })
})
module.exports = router